<template>
	<page-body>
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center wfdetails_flex_0_higd"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub wfdetails_fd0_0_higd'>
					<view class='flex flex-wrap align-center wfdetails_fd0_0_c0_higd' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  wfdetails_fd0_0_c0_c0_higd'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text class='wfdetails_fd0_0_c1_c0_higd'>{{$t('物资详情')}}</text>
					</view>
					<view class='flex flex-wrap align-center justify-end wfdetails_fd0_0_c0_higd'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex benben-flex-layout flex-wrap align-center wfdetails_flex_1_higd">
				<image class='wfdetails_fd1_0_higd' mode="aspectFill" :src='info.thumb'></image>
				<view class='flex flex-direction align-stretch wfdetails_fd1_1_higd'>
					<view class='flex flex-wrap align-center wfdetails_fd1_1_c0_higd'>
						<view class='flex flex-wrap align-center wfdetails_fd1_1_c0_c0_higd'>
						</view>
						<text class='wfdetails_fd1_1_c0_c1_higd'>{{$t('基本信息')}}</text>
					</view>
					<view class='flex flex-wrap align-center wfdetails_fd1_1_c1_higd'>
						<text class='wfdetails_fd1_1_c1_c0_higd'>{{$t('物资名称')}}</text>
						<text>{{info.wzmc?info.wzmc:'暂无'}}</text>
					</view>
					<view class='flex flex-wrap align-center wfdetails_fd1_1_c1_higd'>
						<text class='wfdetails_fd1_1_c1_c0_higd'>{{$t('物资分类')}}</text>
						<text>{{info.wzfl?info.wzfl:'暂无'}}</text>
					</view>
					<view class='flex flex-wrap align-center wfdetails_fd1_1_c1_higd'>
						<text class='wfdetails_fd1_1_c1_c0_higd'>{{$t('所属校区')}}</text>
						<text>{{info.tgxxxjcxxxqjbxx_xqmc?info.tgxxxjcxxxqjbxx_xqmc:'暂无'}}</text>
					</view>
					<view class='flex flex-wrap align-center wfdetails_fd1_1_c1_higd'>
						<text class='wfdetails_fd1_1_c1_c0_higd'>{{$t('规格型号')}}</text>
						<text>{{info.ggxh?info.ggxh:'暂无'}}</text>
					</view>
					<view class='flex flex-wrap align-center wfdetails_fd1_1_c1_higd'>
						<text class='wfdetails_fd1_1_c1_c0_higd'>{{$t('物资数量')}}</text>
						<text>{{info.num?info.num:'暂无'}}</text>
					</view>
				</view>
				<view class='flex flex-direction align-stretch wfdetails_fd1_2_higd'>
					<view class='flex flex-wrap align-center wfdetails_fd1_1_c0_higd'>
						<view class='flex flex-wrap align-center wfdetails_fd1_1_c0_c0_higd'>
						</view>
						<text class='wfdetails_fd1_1_c0_c1_higd'>{{$t('描述')}}</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<text>{{info.ms?info.ms:'暂无'}}</text>
					</view>
				</view>
			</view>

			<!---flex布局flex布局结束-->


		</view>
	</page-body>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},


		data() {
			return {
				/** aid【ID】
				 *   ms【描述】
				 *   yt【用途】
				 *   num【物资数量】
				 *   zp【照片】
				 *   ggxh【规格型号】
				 *   tgxxxjcxxxqjbxx_xqmc【所属校区】
				 *   wzfl【物资分类】
				 *   wzmc【物资名称】 **/
				"info": {
					"wzmc": "",
					"wzfl": "",
					"tgxxxjcxxxqjbxx_xqmc": "",
					"ggxh": "",
					"zp": "",
					"num": "",
					"yt": "",
					"ms": "",
					"aid": ""
				},
				"id": ""
			};
		},
		computed: {

		},
		watch: {},
		onLoad(options) {
			let {
				id
			} = options
			if (id !== undefined) this.id = id
			this.getpg83ff4a22d155Func()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//查询物防建设详情
			async getpg83ff4a22d155Func() {
				//请求方法
				//数据验证

				let datainfo = await this.$api.get(global.apiUrls.post683ff4a22d155, {
					aid: this.id
				});

				if (datainfo.data.code != 1) {
					this.$message.info(datainfo.data.msg);
					return
				}
				let infoinfo = datainfo.data;
				this.info = infoinfo.data

			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #F8F8F8;
		background-size: 100% auto;

		.wfdetails_flex_1_higd {
			padding: 0rpx 32rpx 0rpx 32rpx;

			.wfdetails_fd1_0_higd {
				width: 100%;
				height: 386rpx;
				border-radius: 16rpx;
				margin: 16rpx 0rpx 16rpx 0rpx;
			}

			.wfdetails_fd1_1_higd {
				background: #FFFFFF;
				width: 100%;
				padding: 32rpx 24rpx 32rpx 24rpx;
				margin: 0rpx 0rpx 24rpx 0rpx;
				border-radius: 16rpx;
			}

			.wfdetails_fd1_2_higd {
				padding: 32rpx 24rpx 32rpx 24rpx;
				width: 100%;
				background: rgba(255, 255, 255, 1);
				background-size: 100% auto;
				border-radius: 16rpx;
			}
		}

		.wfdetails_fd1_1_c0_higd {
			margin: 0rpx 0rpx 32rpx 0rpx;
		}

		.wfdetails_fd1_1_c0_c0_higd {
			background: #D32A29;
			width: 5rpx;
			height: 28rpx;
		}

		.wfdetails_fd1_1_c0_c1_higd {
			margin: 0rpx 0rpx 0rpx 12rpx;
			font-size: 32rpx;
			font-weight: 500;
		}

		.wfdetails_fd1_1_c1_higd {
			line-height: 40rpx;
			margin: 0rpx 0rpx 24rpx 0rpx;
		}

		.wfdetails_fd1_1_c1_c0_higd {
			width: 200rpx;
			color: rgba(153, 153, 153, 1);
		}

		.wfdetails_flex_0_higd {
			width: 750rpx;
			height: 88rpx;
			overflow: hidden;
			z-index: 10;
			top: 0rpx;
			background: #fff;
			background-size: 100% auto !important;

			.wfdetails_fd0_0_higd {
				padding: 0rpx 32rpx 0rpx 32rpx;

				.wfdetails_fd0_0_c1_c0_higd {
					font-size: 36rpx;
					font-weight: 700;
					color: #333333;
					line-height: 50rpx;
				}
			}
		}

		.wfdetails_fd0_0_c0_higd {
			width: 120rpx;

			.wfdetails_fd0_0_c0_c0_higd {
				font-size: 36rpx;
				color: #333;
			}
		}
	}
</style>
